package com.site.wisdom_construction.service.iotModule;

import com.site.wisdom_construction.dao.iotModule.TowerCraneWarningDao;
import com.site.wisdom_construction.entity.iotModule.TowerCraneWarning;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

/**
 * @Author daiyifei
 * @Date 2022/9/28
 * @Description
 */
@Service
public class TowerCraneWarningService implements TowerCraneWarningDao {
    @Autowired
    private TowerCraneWarningDao towerCraneWarningDao;

    @Override
    public List<TowerCraneWarning> findTowerCraneWarning(Map map) {
        return towerCraneWarningDao.findTowerCraneWarning(map);
    }

    @Override
    public TowerCraneWarning findTowerCraneWarningByDeviceId(Map map) {
        return towerCraneWarningDao.findTowerCraneWarningByDeviceId(map);
    }

    @Override
    public Integer countTowerCraneWarning(Map map) {
        return towerCraneWarningDao.countTowerCraneWarning(map);
    }
}
